package com.geeksaga.dao;


import org.springframework.dao.DataAccessException;

import com.geeksaga.domain.TablePartition;

/**
 * @author newbie
 * @since 0.1
 */
public interface TablePartitionDao {

    /**
     * @param tablePartition
     * @return
     * @throws DataAccessException
     */
    public TablePartition add(TablePartition tablePartition) throws DataAccessException;
    
    /**
     * @param tablePartition
     * @return
     * @throws DataAccessException
     */
    public TablePartition find(TablePartition tablePartition) throws DataAccessException;
    
    /**
     * @param tablePartion
     * @return
     * @throws DataAccessException
     */
    public int plusRowCount(TablePartition tablePartion) throws DataAccessException;
    
    /**
     * @param tablePartion
     * @return
     * @throws DataAccessException
     */
    public int minusRowCount(TablePartition tablePartion) throws DataAccessException;
}